<template>
	<view>
		<view class="hist">
			<text>收入历史</text><image src="/static/jri.png" @click="hidd"></image>
		</view>
		<view class="penny" v-for="(item,index) in gold" :key="index" v-if="bol">
			<view class="penny-left">
				<image :src="src" ></image>
			</view>
			<view class="penny-rig">
				<view class="rig-top">
					分享金-收益转入
					<text>+{{item.mone}}</text>
				</view>
				<view class="rig-time">
					{{item.time}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import url from '../../components/hosturl.js';
	export default {
		data() {
			return {
				src:'/static/mone.png',
				gold:[{time:'2020.05.12 14:27',mone:'0.02'},{time:'2020.05.12 14:27',mone:'0.02'}],
				bol:true
			}
		},
		methods: {
			hidd(){
				this.bol=!this.bol;
			}
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title:'分享金'
			});
			uni.setNavigationBarColor({
			    frontColor: '#ffffff',
			    backgroundColor: '#a286eb'
			});
		}
	}
</script>

<style>
page{ background-color: #f8f8f8;font-size: 36rpx;height: 100%; }
.hist{ color: #303133;font-size: 24rpx;line-height: 40rpx;padding: 30rpx 60rpx; }
.hist text{ background-color: #fff;border-radius: 30rpx; padding: 10rpx 30rpx;vertical-align: middle;}
.hist image{ height: 40rpx;width: 20rpx;float: right;}
.penny{ background-color: #fff;display: flex;align-items: center;justify-content: center; }
.penny-left{ padding: 0 30rpx;}
.penny-left image{ height: 80rpx;width: 80rpx; }
.penny-rig{ border-bottom: 1rpx #D6D6D6 solid;flex: 1; }
.rig-top{ color: #303133;font-size: 34rpx;padding: 30rpx 20rpx 0; }
.rig-top text{ float: right;color: #a286eb;right: 30rpx; }
.rig-time{ color: #909399;font-size: 24rpx;padding: 10rpx 20rpx 30rpx; }
</style>
